//
//  BiNetEngine.m
//  TrunkIndustryManageSystem
//
//  Created by 李璐西 on 15-4-6.
//  Copyright (c) 2015年 李璐西. All rights reserved.
//

#import "BiNetEngine.h"
#import "BiCarSaleNetEngine.h"
#import "BiLoginNetEngine.h"
#import "BiPurchaseNetEngine.h"
#import "BiDismountEngine.h"
#import "BiCarBorrowNetEngine.h"
#import "BiCarModifyNetEngine.h"
#import "BiDocuEngine.h"
@implementation BiNetEngine

SINGLE_INSTANCE_IMPLEMENTION(BiNetEngine)

#pragma mark 整车销售
// ---------------  整车销售  start  ---------------
//行销申请／执行／审核列表
- (void)requestCarSaleCheckList:(id)delegate paraDict:(NSDictionary *)patadict
{
    [[BiCarSaleNetEngine shareInstance] requestCarSaleCheckList:delegate paraDict:patadict];
}

//行销申请／合同交接列表
- (void)requestCarSaleContracAssoList:(id)delegate paraDict:(NSDictionary *)patadict
{
    [[BiCarSaleNetEngine shareInstance] requestCarSaleContracAssoList:delegate paraDict:patadict];
}
//行销申请保存
- (void)requestSaleApplySave:(id)delegate paraDict:(NSDictionary *)dict
{
    [[BiCarSaleNetEngine shareInstance] requestSaleApplySave:delegate paraDict:dict];
}

//行销申请审核
- (void)requestSaleApplyCheck:(id)delegate paraDict:(NSDictionary *)dict
{
    [[BiCarSaleNetEngine shareInstance] requestSaleApplyCheck:delegate paraDict:dict];
}


//行销执行－>开始行销
- (void)requestSaleStart:(id)delegate paraDict:(NSDictionary *)dict
{
    [[BiCarSaleNetEngine shareInstance] requestSaleStart:delegate paraDict:dict];
}

//行销执行－>结束行销
- (void)requestSaleEnd:(id)delegate paraDic:(NSDictionary *)paradic;
{
    [[BiCarSaleNetEngine shareInstance] requestSaleEnd:delegate paraDic:paradic];
}


//行销执行－>gps信息
- (void)requestSaleGetGPSInfo:(id)delegate paraDict:(NSDictionary *)dict{

    [[BiCarSaleNetEngine shareInstance] requestSaleGetGPSInfo:delegate paraDict:dict];
}

//行销执行－>获取客户信息列表
- (void)requestSaleGetCustomerList:(id)delegate paraDict:(NSDictionary *)dict
{
    [[BiCarSaleNetEngine shareInstance] requestSaleGetCustomerList:delegate paraDict:dict];
}

//行销执行－>添加客户信息
- (void)requestSaleAddCustomerInfo:(id)delegate paraArr:(NSArray *)Arr
{
    [[BiCarSaleNetEngine shareInstance] requestSaleAddCustomerInfo:delegate paraArr:Arr];
}

//行销合同交接保存
- (void)requestSaleContractAssocSave:(id)delegate paraDict:(NSDictionary *)dict
{
    [[BiCarSaleNetEngine shareInstance] requestSaleContractAssocSave:delegate paraDict:dict];
}

//行销合同交接审核
- (void)requestSaleContractAssocCheck:(id)delegate paraDict:(NSDictionary *)dict
{
    [[BiCarSaleNetEngine shareInstance] requestSaleContractAssocCheck:delegate paraDict:dict];
}

//行销添加客户信息图片
- (void)requestSaleCuntomerImageCusT:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{

    [[BiCarSaleNetEngine shareInstance] requestSaleCuntomerImageCusT:delegate withImge:image paraDic:paraDic];
}
- (void)requestSaleCuntomerImageCusTCar:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{
    
    [[BiCarSaleNetEngine shareInstance] requestSaleCuntomerImageCusTCar:delegate withImge:image paraDic:paraDic];
}
- (void)requestSaleCuntomerImageCusTEat:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{
    
    [[BiCarSaleNetEngine shareInstance] requestSaleCuntomerImageCusTEat:delegate withImge:image paraDic:paraDic];
}


//行销添加合同信息图片
- (void)requestSaleContractImageWPJJD:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{
    
    [[BiCarSaleNetEngine shareInstance] requestSaleContractImageWPJJD:delegate withImge:image paraDic:paraDic];
}
- (void)requestSaleContractImageCLJJD:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{
    
    [[BiCarSaleNetEngine shareInstance] requestSaleContractImageCLJJD:delegate withImge:image paraDic:paraDic];
}
- (void)requestSaleContractImageRCHY:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{
    
    [[BiCarSaleNetEngine shareInstance] requestSaleContractImageRCHY:delegate withImge:image paraDic:paraDic];
}
//行销删除合同信息图片
- (void)requestSaleContractImageDel:(id)delegate  paraDic:(NSDictionary *)paraDic{
    
    [[BiCarSaleNetEngine shareInstance] requestSaleContractImageDel:delegate paraDic:paraDic];
}
// ---------------  整车销售   end   ---------------


#pragma mark 整车采购
// ---------------  整车采购  start  ---------------
//－>获取采购订单审批列表
- (void)requestPurchaseGetOrderCheckList:(id)delegate paraDict:(NSDictionary *)dict{

    [[BiPurchaseNetEngine shareInstance] requestPurchaseGetOrderCheckList:delegate paraDict:dict];
}

//－>获取采购改装上线列表
- (void)requestPurchaseGetOrderRefitList:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseGetOrderRefitList:delegate paraDict:dict];
}

//－>获取采购验收入库列表
- (void)requestPurchaseGetOrderYanshouList:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseGetOrderYanshouList:delegate paraDict:dict];
}

//  获取采购订单审核
- (void)requestPurchaseOrderCheck:(id)delegate paraDict:(NSDictionary *)dict{

    [[BiPurchaseNetEngine shareInstance] requestPurchaseOrderCheck:delegate paraDict:dict];
}

//  获取改装厂列表
- (void)requestPurchaseSppliserList:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseSppliserList:delegate paraDict:dict];
}

//  获取绑定合同列表
- (void)requestPurchaseContractList:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseContractList:delegate paraDict:dict];
}

//  获取改装上线审核
- (void)requestPurchaseRefitCheck:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseRefitCheck:delegate paraDict:dict];
}

//  获取改装上线保存
- (void)requestPurchaseRefitSave:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseRefitSave:delegate paraDict:dict];
}


//获取改装上线保存信息图片
- (void)requestPurchaseRefitImage:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseRefitImage:delegate withImge:image paraDic:paraDic];
}

/**
 *   ///  获取验收入库图片上传，dict为传入参数字典，image为上传的图片
 */
- (void)requestPurchaseYanshouImage:(id)delegate withImge:(UIImage *)image paraDic:(NSDictionary *)paraDic{

    [[BiPurchaseNetEngine shareInstance] requestPurchaseYanshouImage:delegate withImge:image paraDic:paraDic];
}


//  获取验收入库审核
- (void)requestPurchaseCarRukuCheck:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiPurchaseNetEngine shareInstance] requestPurchaseCarRukuCheck:delegate paraDict:dict];
}

//  获取验收入库保存
- (void)requestPurchaseCarRukuSave:(id)delegate paraDict:(NSDictionary *)dict{

     [[BiPurchaseNetEngine shareInstance] requestPurchaseCarRukuSave:delegate paraDict:dict];
}

/**
 *   //  获取库房，dict为传入参数字典
 */
- (void)requestPurchaseStoreRoomList:(id)delegate paraDict:(NSDictionary *)dict{

    [[BiPurchaseNetEngine shareInstance] requestPurchaseStoreRoomList:delegate paraDict:dict];
}


//删除改装上线合同图片
- (void)requestPuchaseRefitImageDel:(id)delegate  paraDic:(NSDictionary *)paraDic{
    
    [[BiPurchaseNetEngine shareInstance] requestPuchaseRefitImageDel:delegate paraDic:paraDic];
}



// ---------------  整车采购   end   ---------------


// ---------------  整车拆装  start  ---------------
//  获取整车拆装（完结）列表
- (void)requestDismountCarList:(id)delegate paraDict:(NSDictionary *)dict{

    [[BiDismountEngine shareInstance] requestDismountCarList:delegate paraDict:dict];
}


//  获取整车拆装（完结）审核
- (void)requestDismountCarCheck:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiDismountEngine shareInstance] requestDismountCarCheck:delegate paraDict:dict];
}

// ---------------  整车拆装   end   ---------------



// ---------------  整车变更  start  ---------------
//  请求变更列表， 下拉刷新请求更多，dict为传入参数字典
- (void)requestCarModifyGetList:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiCarModifyNetEngine shareInstance] requestCarModifyGetList:delegate paraDict:dict];
    
}

//  请求合格证交付保存， dict为传入参数字典
- (void)requestCarModifySaveCertificate:(id)delegate paraDict:(NSDictionary *)dict{
    
      [[BiCarModifyNetEngine shareInstance] requestCarModifySaveCertificate:delegate paraDict:dict];
}

//  请求上传领条， dict为传入参数字典

- (void)requestCarModifyImage:(id)delegate withImge:(UIImage *)image paraDict:(NSDictionary *)paraDic{

    [[BiCarModifyNetEngine shareInstance] requestModifyImage:delegate withImge:image  paraDict:paraDic];
}

//  请求delete领条， dict为传入参数字典

- (void)requestModifyImageDelete:(id)delegate  paraDict:(NSDictionary *)paraDic{
    
    [[BiCarModifyNetEngine shareInstance] requestModifyImageDelete:delegate paraDict:paraDic];
}
// ---------------  整车变更   end   ---------------



// ---------------  牌证  start  ---------------
////  请求牌证列表， dict为传入参数字典
- (void)requestDocmengList:(id)delegate paraDict:(NSDictionary *)dict{

    [[BiDocuEngine shareInstance] requestDocmengList:delegate paraDict:dict];
}

- (void)requestDocBillCheck:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiDocuEngine shareInstance] requestDocBillCheck:delegate paraDict:dict];
}

- (void)requestDocInfoManageCheck:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiDocuEngine shareInstance] requestDocInfoManageCheck:delegate paraDict:dict];
}
//信息上传
- (void)requestDocInfoUploadCheck:(id)delegate paraDict:(NSDictionary *)dict{
        
    [[BiDocuEngine shareInstance] requestDocInfoUploadCheck:delegate paraDict:dict];
}
//信息保存
- (void)requestDocInfoSave:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiDocuEngine shareInstance] requestDocInfoSave:delegate paraDict:dict];
}
//拍照信息 审批（批准 驳回）
- (void)requestDocInfoCheck:(id)delegate paraDict:(NSDictionary *)dict{
    
    [[BiDocuEngine shareInstance] requestDocInfoCheck:delegate paraDict:dict];
}
// --------------- 牌证   end   ---------------


#pragma mark 登陆
-(void)requestLogin:(id)delegte  userName:(NSString *)username passWord:(NSString *) pwd;
{
    [[BiLoginNetEngine shareInstance] requestLogin:delegte userName:username passWord:pwd];
}

#pragma mark 整车借车还车
// ---------------  整车借车  start  ---------------
//－>获取借车审批列表
- (void)requestBorrowCarCheckList:(id)delegate paraDict:(NSDictionary *)dict{
    [[BiCarBorrowNetEngine shareInstance] requestCarBorrowCheckList:delegate paraDict:dict];
}
//－>获取借车审批
-(void)requestBorrowCarCheck:(id)delegate paraDict:(NSDictionary *)dict{
    [[BiCarBorrowNetEngine shareInstance] requestBorrowCarCheck:delegate paraDict:dict];
}


//－>获取借车审批驳回

//－>获取还车审批列表
- (void)requestCarReturnCheckList:(id)delegate paraDict:(NSDictionary *)dict{
    [[BiCarBorrowNetEngine shareInstance] requestCarReturnCheckList:delegate paraDict:dict];
}
//－>获取还车审核
-(void)requestCarReturnCheck:(id)delegate paraDict:(NSDictionary *)dict{
    [[BiCarBorrowNetEngine shareInstance] requestCarReturnCheck:delegate paraDict:dict];
}
//－>获取还车审批驳回

// ---------------  整车还车   end   ---------------
@end
